<?php
namespace BP\Sys;

use BP\En\EntityMyPK;

class DefVal extends EntityMyPK {
	public function getParentNo () 
	{
		return $this->GetValStringByKey(DefValAttr::$ParentNo);
	}
	public function setParentNo ($value) // [String value]
	{
		$this->SetValByKey(DefValAttr::$ParentNo, $value);
	}
	public function getIsParent () 
	{
		return $this->GetValStringByKey(DefValAttr::$IsParent);
	}
	public function setIsParent ($value) // [String value]
	{
		$this->SetValByKey(DefValAttr::$IsParent, $value);
	}
	public function getWordsSort () 
	{
		return $this->GetValStringByKey(DefValAttr::$WordsSort);
	}
	public function setWordsSort ($value) // [String value]
	{
		$this->SetValByKey(DefValAttr::$WordsSort, $value);
	}
	public function getFK_MapData () 
	{
		return $this->GetValStringByKey(DefValAttr::$FK_MapData);
	}
	public function setFK_MapData ($value) // [String value]
	{
		$this->SetValByKey(DefValAttr::$FK_MapData, $value);
	}
	public function getAttrKey () 
	{
		return $this->GetValStringByKey(DefValAttr::$AttrKey);
	}
	public function setAttrKey ($value) // [String value]
	{
		$this->SetValByKey(DefValAttr::$AttrKey, $value);
	}
	public function getLB () 
	{
		return $this->GetValStringByKey(DefValAttr::$LB);
	}
	public function setLB ($value) // [String value]
	{
		$this->SetValByKey(DefValAttr::$LB, $value);
	}
	public function getFK_Emp () 
	{
		return $this->GetValStringByKey(DefValAttr::$FK_Emp);
	}
	public function setFK_Emp ($value) // [String value]
	{
		$this->SetValByKey(DefValAttr::$FK_Emp, $value);
	}
	public function getCurValue () 
	{
		return $this->GetValStringByKey(DefValAttr::$CurValue);
	}
	public function setCurValue ($value) // [String value]
	{
		$this->SetValByKey(DefValAttr::$CurValue, $value);
	}
	public static function constructor__ () 
	{
		$me = new self();
		return $me;
	}
	public function getEnMap () 
	{
		if (($this->get_enMap() != NULL))
		{
			return $this->get_enMap();
		}
		$map = new Map("Sys_UserRegedit", "选择词汇");
		$map->Java_SetEnType($EnType->Sys);
		$map->Java_SetCodeStruct("2");
		$map->AddMyPK();
		$map->AddTBString(DefValAttr::$FK_MapData, NULL, "实体",  FALSE ,  FALSE , 0, 100, 20);
		$map->AddTBString(DefValAttr::$FK_Emp, NULL, "人员",  FALSE ,  TRUE , 0, 100, 10);
		$map->AddTBString(DefValAttr::$AttrKey, NULL, "节点对应字段",  FALSE ,  FALSE , 0, 50, 20);
		$map->AddTBInt(DefValAttr::$LB, 0, "类别",  FALSE ,  FALSE );
		$map->AddTBString(DefValAttr::$CurValue, NULL, "文本",  FALSE ,  TRUE , 0, 4000, 10);
		$this->set_enMap($map);
		return $this->get_enMap();
	}
	protected function beforeInsert () 
	{
		$this->setMyPK(DBAccess->GenerGUID());
		return parent->beforeInsert();
	}
}
?>
